import 'package:json_annotation/json_annotation.dart';

part 'bill_summary.g.dart';

@JsonSerializable()
class BillSummary extends Object {
  int orderNum;

  int noComppleteOrderNum;

  //应收金额
  int receiveAmount;

  //订单实收金额
  int totalFee;

  //会员储值金额
  int memberAmount;

  //现金实收
  int cashAmount;

  int orderAmount;

  //系统抹零
  int sysDecreaseAmount;

  //减免金额
  int decreaseAmount;

  //店内优惠
  int storeDiscountAmount;

  int memberDecreaseAmount;

  //优惠合计
  int totalDiscountAmount;

  //免单金额
  int freeAmount;

  //退款单数
  int quitNum;

  //quitAmount
  int quitAmount;

  //退款菜品数
  int quitCommodityNum;

  //退款菜品金额
  int quitCommodityAmount;

  //找零金额
  int chargeAmount;

  //小费金额
  int feeAmount;

  int takeOutToalDiscountAmount;

  int takeOutDeliverFreeFee;

  BillSummary(
    this.orderNum,
    this.noComppleteOrderNum,
    this.receiveAmount,
    this.totalFee,
    this.memberAmount,
    this.cashAmount,
    this.orderAmount,
    this.sysDecreaseAmount,
    this.decreaseAmount,
    this.storeDiscountAmount,
    this.memberDecreaseAmount,
    this.totalDiscountAmount,
    this.freeAmount,
    this.quitNum,
    this.quitAmount,
    this.quitCommodityNum,
    this.quitCommodityAmount,
    this.chargeAmount,
    this.feeAmount,
  );

  factory BillSummary.fromJson(Map<String, dynamic> srcJson) => _$BillSummaryFromJson(srcJson);

  Map<String, dynamic> toJson() => _$BillSummaryToJson(this);
}
